package heritage.joined;

import javax.persistence.Entity;

@Entity
public class Bateau extends Vehicule {

	private static final long serialVersionUID = -8516223078385944521L;

	private int nbreVoiles;
	
	public Bateau() {
	}

	public Bateau(String codeVehicule, String immatriculation, String nom,
			int nbreVoiles) {
		super(codeVehicule, immatriculation, nom);
		this.nbreVoiles = nbreVoiles;
	}

	public int getNbreVoiles() {
		return nbreVoiles;
	}

	public void setNbreVoiles(int nbreVoiles) {
		this.nbreVoiles = nbreVoiles;
	}

	@Override
	public String toString() {
		return "Bateau [nbreVoiles=" + nbreVoiles + ", codeVehicule="
				+ codeVehicule + ", immatriculation=" + immatriculation
				+ ", nom=" + nom + "]";
	}
}
